package com.tledu.springbootmybatis.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author cyrus
 */
@Controller
public class DeskController {

    @RequestMapping("welcome")
    public String welcome() {
        return "welcome";
    }


    @RequestMapping("")
    public String index(Model model) {
        model.addAttribute("name","用户管理");
        return "index";
    }
}
